<script setup lang="ts">
import {listType} from "@/views/ai/agent/x6/content-renderer";
import FileList from "@/views/ai/agent/x6/com/FileList.vue";

const props = defineProps({
  item:{
    type:Object as PropType<listType>,
    required:true
  }
});
const files=computed(()=>{
  return  props.item.chunk?.filter(c=>c.node==='DOCUMENT_TRANSFORM'&&c.status=='completed').map(c=>c.data?.meta)[0]
})
</script>

<template>
  <div v-if="files&&files.length>0">
    <FileList :files="files" />
  </div>
</template>

<style scoped lang="scss">

</style>
